package cn.est.service;
import cn.est.dto.UsersDto;
import cn.est.pojo.Users;
import java.util.Date;
import java.util.List;
import java.util.Map;
import cn.est.dto.Page;

public interface UsersService {

    public Users getUsersById(Long id);

    public List<Users>	getUsersListByMap(Map<String,Object> param);

    public Integer getUsersCountByMap(Map<String,Object> param);

    public Integer qdtxAddUsers(Users users);

    public Integer qdtxModifyUsers(Users users);

    public Integer qdtxDeleteUsersById(Long id);

    public Integer qdtxBatchDeleteUsers(String ids);

    public Page<Users> queryUsersPageByMap(Map<String,Object> param,Integer pageNo,Integer pageSize);
    /**
     * 根据手机号查询用户信息
     *
     * @param phone
     * @return
     */
    UsersDto getByPhone(String phone);

    /**
     * 用户登录--手机号
     *
     * @param phone
     * @return
     */
    UsersDto loginByPhone(String phone);


    /**
     * 微信扫描登录、注册
     *
     * @param accessToken
     * @param openId
     * @return
     * @throws Exception
     */
    UsersDto loginByWechat(String accessToken, String openId);

}
